/*
* @Author: Administrator
* @Date:   2018-09-07 20:21:46
* @Last Modified by:   Administrator
* @Last Modified time: 2018-09-10 14:22:06
*/
import styled from 'styled-components';
import logoPic from '../../static/logo.png';
export const HeaderWrapper = styled.div`
  position: relative;
  height: 58px;
  border-bottom: 1px solid #f0f0f0; 
`

export const Logo = styled.a`
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  height: 56px;
  width: 100px;
  background: url(${logoPic});
  background-size: contain;
`
export const Nav = styled.div`
  width: 900px;
  height: 100%;
  margin: 0 auto;
  padding-right: 70px;
  box-sizing: border-box;
`
export const NavItem = styled.div`
  line-height: 56px;
  padding: 0 15px;
  font-size: 17px;
  color: #333;
  &.right{
  	float: right;
  	color:#969696
  }
  &.left{
  	float:left;
  }
  &.active{
  	color: #ea6f5a;
  }
`
export const SearchWrapper = styled.div`
  float: left;
  position: relative;
  
  .zoom{
    position: absolute;
    right: 5px;
    bottom: 5px;
    width: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 15px;
    &.focused{
    background: #777;
    color: #fff;
  }
}
  
`
export const NavSearch = styled.input.attrs({
	placeholder: '搜索'
})`
  margin-top: 7px;
  padding: 0 30px 0 20px;
  box-sizing: border-box;
  background: #eee
  float: left;
  width: 160px;
  height: 38px;
  line-height: 38px;
  border-radius: 19px;
  color: #969696;
  outline: none;
  font-size: 14px;
  border: none;
  margin-left: 20px;
  &::placeholder {
  	color:#999;
  }
  &.focused{
    width: 240px;
  }
  &.slide-enter{
    transition: all .3s ease-out;
  }
  &.slide-enter-active{
    width: 240px;
  }
  &.slide-exit{
    transition: all .3s ease-out;
  }
  &.slide-exit-active{
    width: 160px;
  }
`
export const SearchInfo = styled.div`
 position: absolute;
 top: 56px;
 left: 10px;
 width: 210px;
 padding: 0 20px;
 box-shadow: 0 0 8px rgba(0, 0, 0, .2);
 cursor: pointer;
 background: #fff;
`
export const SearchInfoTitle = styled.div`
 margin-top: 20px;
 margin-bottom: 15px;
 line-height: 20px;
 color: #969696;
 font-size: 13px;
`
// rotate(0deg)这个是旋转的角度 ease-in是说明动画先慢后快
export const SearchInfoSwitch = styled.span`
 float: right;
 font-size: 12px;
 .song{
  display: block;
  float: left;
  font-size: 12px;
  margin-right: 2px;
  transition: all .3s ease-in;
  transform-origin: center center;
 }
`

export const SearchInfoItem = styled.a`
 display: block;
 float: left;
 line-height: 20px;
 color: #787878;
 border: 1px solid #ddd;
 font-size: 12px;
 border-radius: 4px;
 margin-right: 10px;
 margin-bottom: 15px;
 text-align: center;
 padding: 0 5px;
`
export const Addition = styled.div`
 position: absolute;
 right: 0;
 top: 0;
 height: 56px;
`
export const Button = styled.button`
 outline: none;
 &.zhuce{
	 float: left;
	 line-height: 38px;
	 border-radius: 19px;
	 border: 1px solid  #ec6149
	 margin-top: 9px;
	 margin-right: 20px;
	 padding: 0 20px;
	 font-size: 14px;
 	 color: #ec6149;
 	 background: #fff
 }
 &.writting{
 	 float: left;
	 line-height: 38px;
	 border-radius: 19px;
	 border: 1px solid  #ec6149
	 margin-top: 9px;
	 margin-right: 20px;
	 padding: 0 20px;
	 font-size: 14px;
   color: #fff;
 	 background: #ec6149;
 }
`